package com.yushutao.menu.beans;

import java.io.Serializable;
import java.util.Date;
import java.text.SimpleDateFormat;

/**
 *订单实体
 */
public class OrderBean implements Serializable{
	private static final long serialVersionUID = -4723596698059571730L;
	private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
	private int id;
	private int userId;
	private int dishId;
	private String isLock = "no";
	private String isCookied = "no";
	private Date dateTime;
	
	private String dishName;
	private double prize;
	
	private String address;
	private String phoneNumber;
	private String deskNumber;
	
	public String getDeskNumber() {
		return deskNumber == null?"-":deskNumber;
	}
	public void setDeskNumber(String deskNumber) {
		this.deskNumber = deskNumber;
	}
	public String getAddress() {
		return address == null?"-":address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getDishName() {
		return dishName;
	}
	public void setDishName(String dishName) {
		this.dishName = dishName;
	}
	public double getPrize() {
		return prize;
	}
	public void setPrize(double prize) {
		this.prize = prize;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getDishId() {
		return dishId;
	}
	public void setDishId(int dishId) {
		this.dishId = dishId;
	}
	public String getIsLock() {
		return isLock;
	}
	public void setIsLock(String isLock) {
		this.isLock = isLock;
	}
	public String getIsCookied() {
		return isCookied;
	}
	public void setIsCookied(String isCookied) {
		this.isCookied = isCookied;
	}
	public String getDateTime() {
		return sdf.format(dateTime);
	}
	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}
	
}
